﻿#ifndef MYPLOTFRAMEDEMO_H
#define MYPLOTFRAMEDEMO_H

#include <QWidget>
#include <QTimer>
#include <qcustomplot.h>

namespace Ui {
class MyPlotFrameDemo;
}

class MyPlotFrameDemo : public QWidget
{
    Q_OBJECT

public:
    explicit MyPlotFrameDemo(QWidget *parent = nullptr);
    ~MyPlotFrameDemo();

    void ToggleGraph0();
    void ToggleGraph1();

private:
    Ui::MyPlotFrameDemo *ui;
    QTimer *timer1;
    QPointer<QCPGraph> mGraphs[3];
    QPointer<QCPLayoutElement> mLayoutEles[3];

public slots:
    void TimeEvent();
};

#endif // MYPLOTFRAMEDEMO_H
